package com.example.domain;

import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * @author 袁小弘
 * @describe 培训中心学生管理————角色类
 * @date 2019-12-17 11:08
 */
@Entity
@Table(name = "role")
public class Role implements Serializable {

    private static final long serialVersionUID = -5622635787953856274L;

    @Id
    @GeneratedValue
    @Column(name = "role_Id")
    private Integer roleId;// 角色ID

    @Column(name = "roleName", length = 32)
    private String roleName;// 角色名称

    @Column(name = "roleFather", length = 11)
    private Integer roleFather;// 角色父ID

    @Column(name = "comment", length = 255)
    private String comment;// 备注说明

    @Column(name = "recordTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp recordTime;// 创建记录时间

    @Column(name = "updateTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp updateTime;// 更新记录时间

    public Integer getRoleId() {
        return roleId;
    }

    public void setRole_Id(Integer roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public Integer getRoleFather() {
        return roleFather;
    }

    public void setRoleFather(Integer roleFather) {
        this.roleFather = roleFather;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Timestamp getRecordTime() {
        return recordTime;
    }

    public void setRecordTime(Timestamp recordTime) {
        this.recordTime = recordTime;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Role [roleId=" + roleId + ", roleName=" + roleName + ", roleFather=" + roleFather + ", comment="
                + comment + ", recordTime=" + recordTime + ", updateTime=" + updateTime + "]";
    }

}
